package com.teamwings.modules.head.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.teamwings.modules.head.entity.FormTableHead;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2021-05-06
 */
@Repository
public interface FormTableHeadMapper extends BaseMapper<FormTableHead> {

    Boolean hasTable(@Param("tableName") String tableName);

    List<FormTableHead> getLatestList();

    IPage<FormTableHead> getListWhitCode(IPage<FormTableHead> page, @Param(Constants.WRAPPER)Wrapper<FormTableHead> queryWrapper);
}
